package com.h2cloud.Test2;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Package: com.h2cloud.test
 * @ClassName: test
 * @Author: h2cloud
 * @CreateTime: 2022/8/14 11:58 上午
 * @Description:
 */
public class test {
	public static void main(String[] args) {
		// enggine e = new enggine()
		// 		.setEnggineName("enName")
		// 		.setArg(1)
		// 		.setPrice(100D);
		//
		// car c = new car()
		// 		.setCarName("carName")
		// 		.setE(e);
		// List<String> stringList = Arrays.asList("a", "b", "c");
		// stringList.add("1");
		// List list = new ArrayList<>(Arrays.asList("a", "b", "c"))

		try {
			hell hell = hell.class.newInstance();
		} catch (InstantiationException ex) {
			ex.printStackTrace();
		} catch (IllegalAccessException ex) {
			ex.printStackTrace();
		}

	}
}

class hell{
	public hell(){}
}
@Data
@Accessors(chain = true)
class car {
	String carName;
	enggine e;
}

@Data
@Accessors(chain = true)
class enggine {
	String enggineName;
	Integer arg;
	Double price;
}

class model {
	private boolean isSuccess;

	private boolean flag;

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	public boolean isSuccess() {
		return isSuccess;
	}

	public void setSuccess(boolean success) {
		isSuccess = success;
	}
}
